<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>POS申请管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/pay/pos/apply/">POS申请列表</a></li>
		<li><a href="<c:url value='${fns:getAdminPath()}/pay/pos/apply/form?id=${posApply.id}'></c:url>">申请POS</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="posApply" action="${ctx}/pay/pos/apply/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<label>姓名：</label><form:input path="name" htmlEscape="false" maxlength="50" class="input-small"/>&nbsp;
		<label>状态：</label>
		<%-- <form:radiobuttons onclick="$('#searchForm').submit();" path="status" items="${fns:getDictList('pay_agent_audit')}" itemLabel="label" itemValue="value" htmlEscape="false"/> --%>
		<form:select path="status" class="input-medium">
			<form:option value="" label="请选择" selected="selected"/>
			<form:options items="${fns:getDictList('pay_agent_audit')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
		</form:select>&nbsp;&nbsp;
		<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>&nbsp;&nbsp;
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead><tr><th>姓名</th><th>手机</th><th>产品名称</th><th>地区</th><th>状态</th><th>发布者</th><th>更新时间</th><th>操作</th></tr></thead>
		<tbody>
		<c:forEach items="${page.list}" var="posApply">
			<tr>
				<td><a href="${ctx}/pay/pos/apply/form?id=${posApply.id}" title="${posApply.name}">${posApply.name}</a></td>
				<td>${posApply.phone}</td>
				<td><a href="${ctx}/pay/pos/view?id=${posApply.posId}" target="_blank">${posApply.pos.name}</a></td>
				<td>${posApply.provinceName} ${posApply.cityName} ${posApply.districtName}</td>
				<td>${fns:getDictLabel(posApply.status,'pay_agent_audit','')}</td>
				<td>${posApply.user.name}</td>
				<td><fmt:formatDate value="${posApply.updateDate}" type="both"/></td>
				<td>
					<a href="${ctx}/pay/pos/apply/form?id=${posApply.id}">修改</a>
					<a href="${ctx}/pay/pos/apply/delete?id=${posApply.id}${posApply.delFlag ne 0?'&isRe=true':''}" onclick="return confirmx('确认要${posApply.delFlag ne 0?'发布':'删除'}该记录吗？', this.href)" >${posApply.delFlag ne 0?'发布':'删除'}</a>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>